package com.lanou.pianke.search.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "pcomment",type = "pcomment")
public class Pcomment {
    // 碎片评论自增id
    @Id
    private Long id;
    // 页面碎片评论id
    private String pcommentId;
    // 碎片id
    private String pieceid;
    // 碎片评论时间
    private Integer pcommentTime;
    // 碎片评论内容
    private String pcommentContent;
    // 碎片评论用户id
    private Long uid;
    // 碎片被评论用户id
    private Long pauthorId;
    // 消息是否已读
    private Integer isreaded;
    // 碎片评论状态:0表示存在 , 1 表示删除
    private Integer pcommentStatus;
    // 评论被举报数
    private Integer pcommentReport;

    public Pcomment() {
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPcommentId() {
        return pcommentId;
    }

    public void setPcommentId(String pcommentId) {
        this.pcommentId = pcommentId;
    }

    public String getPieceid() {
        return pieceid;
    }

    public void setPieceid(String pieceid) {
        this.pieceid = pieceid;
    }

    public Integer getPcommentTime() {
        return pcommentTime;
    }

    public void setPcommentTime(Integer pcommentTime) {
        this.pcommentTime = pcommentTime;
    }

    public String getPcommentContent() {
        return pcommentContent;
    }

    public void setPcommentContent(String pcommentContent) {
        this.pcommentContent = pcommentContent;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getPauthorId() {
        return pauthorId;
    }

    public void setPauthorId(Long pauthorId) {
        this.pauthorId = pauthorId;
    }

    public Integer getIsreaded() {
        return isreaded;
    }

    public void setIsreaded(Integer isreaded) {
        this.isreaded = isreaded;
    }

    public Integer getPcommentStatus() {
        return pcommentStatus;
    }

    public void setPcommentStatus(Integer pcommentStatus) {
        this.pcommentStatus = pcommentStatus;
    }

    public Integer getPcommentReport() {
        return pcommentReport;
    }

    public void setPcommentReport(Integer pcommentReport) {
        this.pcommentReport = pcommentReport;
    }

}
